package cn.tedu.spring6.service;

import cn.tedu.spring6.dao.OrderDao;

public class OrderService {
    private OrderDao orderDao;

    /**
     * 通过set方法给属性赋值
     * @param orderDao
     */
    public void setOrderDao(OrderDao orderDao) {
        this.orderDao = orderDao;
    }
    /**
     * 生成订单的业务方法
     */
    public void generate(){
        orderDao.insert();
    }
}
